﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PocketEngine.Batches
{
    public class pBatch
    {
        
        private List<pBatchItem> Items = new List<pBatchItem>();
        
        public void Add(pBatchItem item)
        {
            Items.Add(item);
        }

        public void Run()
        {
            foreach (var item in Items)
            {
                item.Execute();
            }
            Items.Clear();
        }
        public void Sort()
        {

        }
        public int CompareItem(pBatchItem item)
        {
            return 0;
        }
    }
}
